import request from '@/utils/request'

// get请求 错误码 304001
export function getroomTypeList(params) {
  return request({
    url: `/parkManage/roomType/getList`,
    method: "get",
    params,
  });
}

// 新增 错误码304002
export function add(data) {
  return request({
    url: `/parkManage/roomType/add`,
    method: "post",
    data,
  });
}

// 修改 错误码304003
export function edit(data) {
  return request({
    url: `/parkManage/roomType/edit`,
    method: "put",
    data,
  });
}


// 修改 错误码304004
export function detail(id) {
  return request({
    url: `/parkManage/roomType/${id}`,
    method: "get",
  });
}

// 删除 错误码304005
export function deleteroomType(id) {
  return request({
    url: `/parkManage/roomType/delete/${id}`,
    method: "delete",
  });
}
